package com.example.aepproject;

import com.example.aepproject.GUI.SelectContent;

import android.os.Bundle;
import android.app.Activity;
import android.content.Intent;
import android.view.Menu;
import android.view.View;
import android.widget.Button;

public class MainActivity extends Activity {

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_main);
        
        Button botao1 = (Button) findViewById(R.id.Button01);
        Button botao2 = (Button) findViewById(R.id.Button02);
        Button botao3 = (Button) findViewById(R.id.Button03);
        Button botao4 = (Button) findViewById(R.id.Button04);
        
        botao1.setOnClickListener(new View.OnClickListener() {
			
			@Override
			public void onClick(View view) {
				// TODO Auto-generated method stub
				Intent intencao = new Intent(view.getContext(),SelectContent.class);
				startActivityForResult(intencao,0);
			}
		});
        
        botao2.setOnClickListener(new View.OnClickListener() {
			
			@Override
			public void onClick(View view) {
				// TODO Auto-generated method stub
				Intent intencao = new Intent(view.getContext(),SelectContent.class);
				startActivityForResult(intencao,0);
			}
		});
        
        botao3.setOnClickListener(new View.OnClickListener() {
			
			@Override
			public void onClick(View view) {
				// TODO Auto-generated method stub
				Intent intencao = new Intent(view.getContext(),SelectContent.class);
				startActivityForResult(intencao,0);
			}
		});
        
        botao4.setOnClickListener(new View.OnClickListener() {
			
			@Override
			public void onClick(View view) {
				// TODO Auto-generated method stub
				Intent intencao = new Intent(view.getContext(),SelectContent.class);
				startActivityForResult(intencao,0);
			}
		});
    }


    @Override
    public boolean onCreateOptionsMenu(Menu menu) {
        // Inflate the menu; this adds items to the action bar if it is present.
        getMenuInflater().inflate(R.menu.main, menu);
        return true;
    }
    
}
